package com.apes.framework.jpa.generator.repository;


import com.apes.framework.jpa.repository.CustomRepository;
import com.apes.framework.jpa.generator.model.Sequence;


/**
 * @author xul
 * @create 2018-01-23 16:07
 */
public interface SequenceRepository extends CustomRepository<Sequence, Long> {

    //Sequence findFirstByCodeAndCompany_IdOrderByCompanyAscIdAsc(String code, long companyId);
    Sequence findFirstByCodeAndCompanyOrderByCompanyAscIdAsc(String code, long companyId);

    Sequence findFirstByCodeOrderByCodeAsc(String code);

}
